package cn.java86.test2;

import cn.java86.dao.GradeDao;
import cn.java86.dao.StudentDao;
import cn.java86.entity.Grade;
import cn.java86.entity.Student;
import cn.java86.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;
import java.util.Map;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestSTudentCount {
    public static void main(String[] args) {
        SqlSession s= MybatisUtil.get();
        StudentDao mapper = s.getMapper(StudentDao.class);
        List<Map<String,Integer>> datas= mapper.countBySex();
        System.out.println(datas);
        MybatisUtil.close(s);
    }
}
